package com.goodmr.passport.webapp.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 帐号登出
 *
 * @author <a href="mailto:bingdong13@msn.com">bigo</a>
 */
@RestController
@RequestMapping(path = "/passport/signout")
public class SignoutController {

    /**
     * 帐号登出
     * 通过header 传递 access token
     *
     * @param request 请求数据包
     * @return 登出成功，返回no content，否则返回异常
     */
    @DeleteMapping("")
    public ResponseEntity logout(HttpServletRequest request) {
        return null;
    }
}
